package org.jianfa.homework.user.controller;

import org.apache.dubbo.config.annotation.Reference;
import org.jianfa.homework.api.CodeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Reference
    private CodeService codeService;

    @GetMapping("/validate")
    public Integer validate() {
        return codeService.validate("1", "2");
    }
}
